您可以通过PlotElement.LabelLine 附加属性添加连接线,如以下XAML代码所示:
XAML |
拷贝代码
|
---|---|
<c1:DataSeries.PointLabelTemplate> <DataTemplate> <Border BorderBrush="DarkGray" BorderThickness="1" Background="LightGray" c1:PlotElement.LabelAlignment="Auto" c1:PlotElement.LabelOffset="30,0"> <TextBlock Text="{Binding Value, StringFormat=0}" /> <c1:PlotElement.LabelLine> <Line Stroke="LightGray" StrokeThickness="2" /> </c1:PlotElement.LabelLine> </Border> </DataTemplate> </c1:DataSeries.PointLabelTemplate> |